package com.ktjiaoyu.ktmall.dao;

import com.ktjiaoyu.ktmall.entity.Category;

import java.sql.SQLException;
import java.util.List;

public interface CategoryDao {
    /**
     * 查询所有分类
     * */
    public List<Category> findAll() throws SQLException;


    /**
     * 添加分类
     * */
    public int insert(Category entity) throws SQLException;

    /**
     * 修改分类
     * */
    public int update(Category entity) throws SQLException;

    /**
     * 删除分类
     * */
    public int delete(Long id) throws SQLException;
}
